import request from '@/utils/request'

export function getPosList() {
  return request({
    url: '/api/sysPos/list',
    method: 'get'
  })
}

export function addPos(data) {
  return request({
    url: '/api/sysPos/add',
    method: 'post',
    data
  })
}

export function updatePos(data) {
  return request({
    url: '/api/sysPos/update',
    method: 'post',
    data
  })
}

export function deletePos(id) {
  return request({
    url: '/api/sysPos/delete',
    method: 'post',
    data: { id }
  })
}
